/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * introduction:
 *  蓝牙串口驱动
 * @file bluetooth.h
 * @author hellokun （https://space.bilibili.com/475950146）
 * @brief 蓝牙模块驱动程序
 * @version 0.1
 * @date 2022-03-16
 * @copyright Copyright (c) 2022
 */

#ifndef __BLUETOOTH_H__
#define __BLUETOOTH_H__

#define BLUE_RX_1 1
#define BLUE_TX_0 0     // uart gpio
#define UNION_CMD_LEN 2 // union devices command length

int Bluetooth_Init();
int Bluetooth_read(char *get_data, int data_len);
int Bluetooth_write(char *get_data, int data_len);

#endif